//
//  RequestManager.h
//  Ares-models
//
//  Created by cola tin on 16/2/3.
//  Copyright © 2016年 linkedcare. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AFNetworking.h"

extern NSString * const HTTP_GET;
extern NSString * const HTTP_POST;
extern NSString * const HTTP_PUT;
extern NSString * const HTTP_DELETE;

extern NSString * const KEY_TOKEN;
extern NSString * const BASE_URL_APP;

typedef void (^FinishBlock)(NSURLSessionDataTask *operation, id responseObject, NSError * error);

@interface LCRequester : NSObject

+ (instancetype) sharedForApp;

@property(nonatomic,strong) NSURL *baseUrl;
@property(nonatomic,strong) AFHTTPSessionManager *afManager;


- (NSURLSessionDataTask*)requestWithMethod:(NSString*) method urlString:(NSString*)urlString parameters:(id)param finish:(FinishBlock) finish;

@end

